import React from 'react';
import {HashRouter, Route, Switch} from 'react-router-dom';
import Login from '../views/Login';
import Home from '../views/Home';
import Mine from '../views/Mine';
import ColumnSearch from '../views/ColumnSearch';
import CostStatistics from '../views/CostStatistics';
import Demo from "../views/Demo";
import EntryAdd from "../views/EntryAdd"; //入栏添加
import EntryAddList from "../views/EntryAddList"; //入栏缓存列表
import EntryAddRealList from "../views/EntryAddRealList"; //入栏缓存列表
import OutSlaughterAdd from "../views/OutSlaughterAdd";//出栏缓存列表
import OutSlaughterAddDetail from "../views/OutSlaughterAddDetail";//出栏添加缓存详情
import DiseaseAdd from "../views/DiseaseAdd";//疾病添加

const BasicRoute = () => (
        <HashRouter>
            <Switch>
                <Route exact path="/" component={Login}/>
                <Route exact path="/Home" component={Home}/>
                <Route exact path="/Mine" component={Mine}/>
                <Route exact path="/ColumnSearch" component={ColumnSearch}/>
                <Route exact path="/CostStatistics" component={CostStatistics}/>
                <Route exact path="/Demo" component={Demo}/>
                <Route exact path="/EntryAdd" component={EntryAdd}/>
                <Route exact path="/EntryAddList" component={EntryAddList}/>
                <Route exact path="/OutSlaughterAdd" component={OutSlaughterAdd}/>
                <Route exact path="/OutSlaughterAddDetail/:infoId" component={OutSlaughterAddDetail}/>
                <Route exact path="/DiseaseAdd/:infoId" component={DiseaseAdd}/>
                <Route exact path="/EntryAddRealList" component={EntryAddRealList}/>
            </Switch>
        </HashRouter>
);


export default BasicRoute;
